home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / lib / python2.6 / bsddb / dbobj.pyc (.txt) < prev    next >
Python Compiled Bytecode  |  2009-11-11  |  19KB  |  447 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import sys
  5. absolute_import = sys.version_info[0] >= 3
  6. if absolute_import:
  7.     exec 'from . import db'
  8. else:
  9.     import db
  10. if sys.version_info[0:2] <= (2, 5):
  11.     
  12.     try:
  13.         from UserDict import DictMixin
  14.     except ImportError:
  15.         
  16.         class DictMixin:
  17.             pass
  18.  
  19.  
  20.     MutableMapping = DictMixin
  21. else:
  22.     import collections
  23.     MutableMapping = collections.MutableMapping
  24.  
  25. class DBEnv:
  26.     
  27.     def __init__(self, *args, **kwargs):
  28.         self._cobj = apply(db.DBEnv, args, kwargs)
  29.  
  30.     
  31.     def close(self, *args, **kwargs):
  32.         return apply(self._cobj.close, args, kwargs)
  33.  
  34.     
  35.     def open(self, *args, **kwargs):
  36.         return apply(self._cobj.open, args, kwargs)
  37.  
  38.     
  39.     def remove(self, *args, **kwargs):
  40.         return apply(self._cobj.remove, args, kwargs)
  41.  
  42.     
  43.     def set_shm_key(self, *args, **kwargs):
  44.         return apply(self._cobj.set_shm_key, args, kwargs)
  45.  
  46.     
  47.     def set_cachesize(self, *args, **kwargs):
  48.         return apply(self._cobj.set_cachesize, args, kwargs)
  49.  
  50.     
  51.     def set_data_dir(self, *args, **kwargs):
  52.         return apply(self._cobj.set_data_dir, args, kwargs)
  53.  
  54.     
  55.     def set_flags(self, *args, **kwargs):
  56.         return apply(self._cobj.set_flags, args, kwargs)
  57.  
  58.     
  59.     def set_lg_bsize(self, *args, **kwargs):
  60.         return apply(self._cobj.set_lg_bsize, args, kwargs)
  61.  
  62.     
  63.     def set_lg_dir(self, *args, **kwargs):
  64.         return apply(self._cobj.set_lg_dir, args, kwargs)
  65.  
  66.     
  67.     def set_lg_max(self, *args, **kwargs):
  68.         return apply(self._cobj.set_lg_max, args, kwargs)
  69.  
  70.     
  71.     def set_lk_detect(self, *args, **kwargs):
  72.         return apply(self._cobj.set_lk_detect, args, kwargs)
  73.  
  74.     if db.version() < (4, 5):
  75.         
  76.         def set_lk_max(self, *args, **kwargs):
  77.             return apply(self._cobj.set_lk_max, args, kwargs)
  78.  
  79.     
  80.     
  81.     def set_lk_max_locks(self, *args, **kwargs):
  82.         return apply(self._cobj.set_lk_max_locks, args, kwargs)
  83.  
  84.     
  85.     def set_lk_max_lockers(self, *args, **kwargs):
  86.         return apply(self._cobj.set_lk_max_lockers, args, kwargs)
  87.  
  88.     
  89.     def set_lk_max_objects(self, *args, **kwargs):
  90.         return apply(self._cobj.set_lk_max_objects, args, kwargs)
  91.  
  92.     
  93.     def set_mp_mmapsize(self, *args, **kwargs):
  94.         return apply(self._cobj.set_mp_mmapsize, args, kwargs)
  95.  
  96.     
  97.     def set_timeout(self, *args, **kwargs):
  98.         return apply(self._cobj.set_timeout, args, kwargs)
  99.  
  100.     
  101.     def set_tmp_dir(self, *args, **kwargs):
  102.         return apply(self._cobj.set_tmp_dir, args, kwargs)
  103.  
  104.     
  105.     def txn_begin(self, *args, **kwargs):
  106.         return apply(self._cobj.txn_begin, args, kwargs)
  107.  
  108.     
  109.     def txn_checkpoint(self, *args, **kwargs):
  110.         return apply(self._cobj.txn_checkpoint, args, kwargs)
  111.  
  112.     
  113.     def txn_stat(self, *args, **kwargs):
  114.         return apply(self._cobj.txn_stat, args, kwargs)
  115.  
  116.     
  117.     def set_tx_max(self, *args, **kwargs):
  118.         return apply(self._cobj.set_tx_max, args, kwargs)
  119.  
  120.     
  121.     def set_tx_timestamp(self, *args, **kwargs):
  122.         return apply(self._cobj.set_tx_timestamp, args, kwargs)
  123.  
  124.     
  125.     def lock_detect(self, *args, **kwargs):
  126.         return apply(self._cobj.lock_detect, args, kwargs)
  127.  
  128.     
  129.     def lock_get(self, *args, **kwargs):
  130.         return apply(self._cobj.lock_get, args, kwargs)
  131.  
  132.     
  133.     def lock_id(self, *args, **kwargs):
  134.         return apply(self._cobj.lock_id, args, kwargs)
  135.  
  136.     
  137.     def lock_put(self, *args, **kwargs):
  138.         return apply(self._cobj.lock_put, args, kwargs)
  139.  
  140.     
  141.     def lock_stat(self, *args, **kwargs):
  142.         return apply(self._cobj.lock_stat, args, kwargs)
  143.  
  144.     
  145.     def log_archive(self, *args, **kwargs):
  146.         return apply(self._cobj.log_archive, args, kwargs)
  147.  
  148.     
  149.     def set_get_returns_none(self, *args, **kwargs):
  150.         return apply(self._cobj.set_get_returns_none, args, kwargs)
  151.  
  152.     
  153.     def log_stat(self, *args, **kwargs):
  154.         return apply(self._cobj.log_stat, args, kwargs)
  155.  
  156.     if db.version() >= (4, 1):
  157.         
  158.         def dbremove(self, *args, **kwargs):
  159.             return apply(self._cobj.dbremove, args, kwargs)
  160.  
  161.         
  162.         def dbrename(self, *args, **kwargs):
  163.             return apply(self._cobj.dbrename, args, kwargs)
  164.  
  165.         
  166.         def set_encrypt(self, *args, **kwargs):
  167.             return apply(self._cobj.set_encrypt, args, kwargs)
  168.  
  169.     
  170.     if db.version() >= (4, 4):
  171.         
  172.         def lsn_reset(self, *args, **kwargs):
  173.             return apply(self._cobj.lsn_reset, args, kwargs)
  174.  
  175.     
  176.  
  177.  
  178. class DB(MutableMapping):
  179.     
  180.     def __init__(self, dbenv, *args, **kwargs):
  181.         self._cobj = apply(db.DB, (dbenv._cobj,) + args, kwargs)
  182.  
  183.     
  184.     def __len__(self):
  185.         return len(self._cobj)
  186.  
  187.     
  188.     def __getitem__(self, arg):
  189.         return self._cobj[arg]
  190.  
  191.     
  192.     def __setitem__(self, key, value):
  193.         self._cobj[key] = value
  194.  
  195.     
  196.     def __delitem__(self, arg):
  197.         del self._cobj[arg]
  198.  
  199.     if sys.version_info[0:2] >= (2, 6):
  200.         
  201.         def __iter__(self):
  202.             return self._cobj.__iter__()
  203.  
  204.     
  205.     
  206.     def append(self, *args, **kwargs):
  207.         return apply(self._cobj.append, args, kwargs)
  208.  
  209.     
  210.     def associate(self, *args, **kwargs):
  211.         return apply(self._cobj.associate, args, kwargs)
  212.  
  213.     
  214.     def close(self, *args, **kwargs):
  215.         return apply(self._cobj.close, args, kwargs)
  216.  
  217.     
  218.     def consume(self, *args, **kwargs):
  219.         return apply(self._cobj.consume, args, kwargs)
  220.  
  221.     
  222.     def consume_wait(self, *args, **kwargs):
  223.         return apply(self._cobj.consume_wait, args, kwargs)
  224.  
  225.     
  226.     def cursor(self, *args, **kwargs):
  227.         return apply(self._cobj.cursor, args, kwargs)
  228.  
  229.     
  230.     def delete(self, *args, **kwargs):
  231.         return apply(self._cobj.delete, args, kwargs)
  232.  
  233.     
  234.     def fd(self, *args, **kwargs):
  235.         return apply(self._cobj.fd, args, kwargs)
  236.  
  237.     
  238.     def get(self, *args, **kwargs):
  239.         return apply(self._cobj.get, args, kwargs)
  240.  
  241.     
  242.     def pget(self, *args, **kwargs):
  243.         return apply(self._cobj.pget, args, kwargs)
  244.  
  245.     
  246.     def get_both(self, *args, **kwargs):
  247.         return apply(self._cobj.get_both, args, kwargs)
  248.  
  249.     
  250.     def get_byteswapped(self, *args, **kwargs):
  251.         return apply(self._cobj.get_byteswapped, args, kwargs)
  252.  
  253.     
  254.     def get_size(self, *args, **kwargs):
  255.         return apply(self._cobj.get_size, args, kwargs)
  256.  
  257.     
  258.     def get_type(self, *args, **kwargs):
  259.         return apply(self._cobj.get_type, args, kwargs)
  260.  
  261.     
  262.     def join(self, *args, **kwargs):
  263.         return apply(self._cobj.join, args, kwargs)
  264.  
  265.     
  266.     def key_range(self, *args, **kwargs):
  267.         return apply(self._cobj.key_range, args, kwargs)
  268.  
  269.     
  270.     def has_key(self, *args, **kwargs):
  271.         return apply(self._cobj.has_key, args, kwargs)
  272.  
  273.     
  274.     def items(self, *args, **kwargs):
  275.         return apply(self._cobj.items, args, kwargs)
  276.  
  277.     
  278.     def keys(self, *args, **kwargs):
  279.         return apply(self._cobj.keys, args, kwargs)
  280.  
  281.     
  282.     def open(self, *args, **kwargs):
  283.         return apply(self._cobj.open, args, kwargs)
  284.  
  285.     
  286.     def put(self, *args, **kwargs):
  287.         return apply(self._cobj.put, args, kwargs)
  288.  
  289.     
  290.     def remove(self, *args, **kwargs):
  291.         return apply(self._cobj.remove, args, kwargs)
  292.  
  293.     
  294.     def rename(self, *args, **kwargs):
  295.         return apply(self._cobj.rename, args, kwargs)
  296.  
  297.     
  298.     def set_bt_minkey(self, *args, **kwargs):
  299.         return apply(self._cobj.set_bt_minkey, args, kwargs)
  300.  
  301.     
  302.     def set_bt_compare(self, *args, **kwargs):
  303.         return apply(self._cobj.set_bt_compare, args, kwargs)
  304.  
  305.     
  306.     def set_cachesize(self, *args, **kwargs):
  307.         return apply(self._cobj.set_cachesize, args, kwargs)
  308.  
  309.     
  310.     def set_flags(self, *args, **kwargs):
  311.         return apply(self._cobj.set_flags, args, kwargs)
  312.  
  313.     
  314.     def set_h_ffactor(self, *args, **kwargs):
  315.         return apply(self._cobj.set_h_ffactor, args, kwargs)
  316.  
  317.     
  318.     def set_h_nelem(self, *args, **kwargs):
  319.         return apply(self._cobj.set_h_nelem, args, kwargs)
  320.  
  321.     
  322.     def set_lorder(self, *args, **kwargs):
  323.         return apply(self._cobj.set_lorder, args, kwargs)
  324.  
  325.     
  326.     def set_pagesize(self, *args, **kwargs):
  327.         return apply(self._cobj.set_pagesize, args, kwargs)
  328.  
  329.     
  330.     def set_re_delim(self, *args, **kwargs):
  331.         return apply(self._cobj.set_re_delim, args, kwargs)
  332.  
  333.     
  334.     def set_re_len(self, *args, **kwargs):
  335.         return apply(self._cobj.set_re_len, args, kwargs)
  336.  
  337.     
  338.     def set_re_pad(self, *args, **kwargs):
  339.         return apply(self._cobj.set_re_pad, args, kwargs)
  340.  
  341.     
  342.     def set_re_source(self, *args, **kwargs):
  343.         return apply(self._cobj.set_re_source, args, kwargs)
  344.  
  345.     
  346.     def set_q_extentsize(self, *args, **kwargs):
  347.         return apply(self._cobj.set_q_extentsize, args, kwargs)
  348.  
  349.     
  350.     def stat(self, *args, **kwargs):
  351.         return apply(self._cobj.stat, args, kwargs)
  352.  
  353.     
  354.     def sync(self, *args, **kwargs):
  355.         return apply(self._cobj.sync, args, kwargs)
  356.  
  357.     
  358.     def type(self, *args, **kwargs):
  359.         return apply(self._cobj.type, args, kwargs)
  360.  
  361.     
  362.     def upgrade(self, *args, **kwargs):
  363.         return apply(self._cobj.upgrade, args, kwargs)
  364.  
  365.     
  366.     def values(self, *args, **kwargs):
  367.         return apply(self._cobj.values, args, kwargs)
  368.  
  369.     
  370.     def verify(self, *args, **kwargs):
  371.         return apply(self._cobj.verify, args, kwargs)
  372.  
  373.     
  374.     def set_get_returns_none(self, *args, **kwargs):
  375.         return apply(self._cobj.set_get_returns_none, args, kwargs)
  376.  
  377.     if db.version() >= (4, 1):
  378.         
  379.         def set_encrypt(self, *args, **kwargs):
  380.             return apply(self._cobj.set_encrypt, args, kwargs)
  381.  
  382.     
  383.  
  384.  
  385. class DBSequence:
  386.     
  387.     def __init__(self, *args, **kwargs):
  388.         self._cobj = apply(db.DBSequence, args, kwargs)
  389.  
  390.     
  391.     def close(self, *args, **kwargs):
  392.         return apply(self._cobj.close, args, kwargs)
  393.  
  394.     
  395.     def get(self, *args, **kwargs):
  396.         return apply(self._cobj.get, args, kwargs)
  397.  
  398.     
  399.     def get_dbp(self, *args, **kwargs):
  400.         return apply(self._cobj.get_dbp, args, kwargs)
  401.  
  402.     
  403.     def get_key(self, *args, **kwargs):
  404.         return apply(self._cobj.get_key, args, kwargs)
  405.  
  406.     
  407.     def init_value(self, *args, **kwargs):
  408.         return apply(self._cobj.init_value, args, kwargs)
  409.  
  410.     
  411.     def open(self, *args, **kwargs):
  412.         return apply(self._cobj.open, args, kwargs)
  413.  
  414.     
  415.     def remove(self, *args, **kwargs):
  416.         return apply(self._cobj.remove, args, kwargs)
  417.  
  418.     
  419.     def stat(self, *args, **kwargs):
  420.         return apply(self._cobj.stat, args, kwargs)
  421.  
  422.     
  423.     def set_cachesize(self, *args, **kwargs):
  424.         return apply(self._cobj.set_cachesize, args, kwargs)
  425.  
  426.     
  427.     def set_flags(self, *args, **kwargs):
  428.         return apply(self._cobj.set_flags, args, kwargs)
  429.  
  430.     
  431.     def set_range(self, *args, **kwargs):
  432.         return apply(self._cobj.set_range, args, kwargs)
  433.  
  434.     
  435.     def get_cachesize(self, *args, **kwargs):
  436.         return apply(self._cobj.get_cachesize, args, kwargs)
  437.  
  438.     
  439.     def get_flags(self, *args, **kwargs):
  440.         return apply(self._cobj.get_flags, args, kwargs)
  441.  
  442.     
  443.     def get_range(self, *args, **kwargs):
  444.         return apply(self._cobj.get_range, args, kwargs)
  445.  
  446.  
  447.